import request from '@/utils/request'
export default {
   queryWhiteListT(data) {
    return request({
    url: `/sys/whiteListT/listByDto`,
    method: 'post',
    data
    })
},

    deleteWhiteListT(data) {
    return request({
    url: `/sys/whiteListT/delete`,
    method: 'post',
    data
    })
},

  getWhiteListTInfo(id) {
   return request({
   url: `/sys/whiteListT/info/${id}`,
   method: 'get',
   data
})
},
addOrUpdateWhiteListT(data) {
  if(data.id ===null){
    return request({
    url: `/sys/whiteListT/add`,
    method: 'post',
    data
    })
  }else{
    return request({
    url: `/sys/whiteListT/update`,
    method: 'post',
    data
   })
}
},
}
